import { ref } from 'vue'

export default function () {
  const loading = ref<boolean>(true)

  const openLoad = () => {
    loading.value = true
  }

  const closeLoad = () => {
    loading.value = false
  }

  return {
    loading,
    openLoad,
    closeLoad
  }
}
